<?php

namespace App\Http\Controllers\Mgt;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;

use Spatie\Permission\Models\Acl\Role;
use Spatie\Permission\Models\Acl\Permission;

class SystemController extends Controller
{


    public function role()
    {
        $roles = Permission::all();
        dd($roles);
        $admin = Auth::guard('admin')->user();

        $roles = $admin->getRoleNames();

        $permissions = $admin->permissions;
        dd($permissions);
    }


}